<%@ page language="java"
	import="java.util.*,com.scpii.universal.util.EhCacheManager,com.scpii.universal.constant.GenericConstants"
	pageEncoding="UTF-8"%>
<%@ include file="/page/base.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<base href="<%=basePath%>"></base>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>通用版登录-Login</title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="bookmark" href="favicon.ico" type="image/x-icon" />
<script type="text/javascript">
	function loginCheck() {
		var msg = "${requestScope.LoginFailed}";
		if (msg != "") {
			alert(msg);
		}
	}
</script>
<style type="text/css">
body,div,p,ul,li,span,a {
	margin: 0;
	padding: 0;
	color: #666;
	text-decoration: none;
	font-size: 12px;
	font-family: "微软雅黑", "宋体" ，Tahoma, Verdana, Arial, Helvetica, sans-serif;
}

ul li {
	list-style: none;
}

a {
	cursor: pointer;
}

.clear {
	clear: both;
}

.wrapper {
	margin: 0 auto;
	width: 1024px;
}

body {
	background: url(images/bg_body.jpg) 0 0 repeat
}
/* top css*/
#top {
	height: 114px;
	background: url(images/bg_top.jpg) 0 0 repeat;
}

#logo {
	float: left;
	margin: 15px auto 10px 20px;
	vertical-align: middle;
}

.content {
	margin: 80px auto;
	position: relative;
	width: 1003px;
	height: 398px;
	background: url(images/content.jpg) 0 0 no-repeat;
	z-index: 1;
}

.loginbox {
	position: absolute;
	padding: 15px;
	top: 0;
	left: 680px;
	width: 285px;
	height: 275px;
	z-index: 1;
}

.loginbox p {
	height: 40px;
	line-height: 40px;
	margin-left: 15px;
	font-size: 18px;
	color: #666;
}

.loginbox div {
	margin: 20px 20px 0;
}

.loginbox div a {
	color: #2862c3
}

.loginbox div a:hover {
	text-decoration: underline;
}

.loginbox div span {
	display: block;
	float: left;
	width: 50px;
	height: 24px;
	line-height: 24px;
}

.loginbox div input {
	float: left;
	width: 180px;
	height: 19px;
}

#errShow span {
	color: red;
	margin-left: 20px;
}
</style>
</head>

<body onLoad="loginCheck()">
	<div id="top">
		<div class="wrapper">
			<div id="logo"></div>
			<!--  end:logo -->
		</div>
		<!--  end:wrapper -->
	</div>
	<!--end:top-->
	<div class="content">
		<form action="<%=path%>/login/loginUser.action" method="POST">
			<div class="loginbox">
				<p>用户登录</p>
				<span id="errShow"><s:fielderror>
						<s:actionerror />
					</s:fielderror></span>
				<div>
					<span>用户名：</span><input name="manageUserInfo.varLoginName"
						type="text" value="" />
					<div class="clear"></div>
				</div>
				<div>
					<span>密&nbsp;&nbsp;&nbsp;码：</span><input type="password"
						name="manageUserInfo.varPassword" value="" />
					<div class="clear"></div>
				</div>
				<div>
					<span>&nbsp;&nbsp;&nbsp;</span><input type="submit"
						value="登&nbsp;&nbsp;&nbsp;录"
						style="width: 108px; height: 27px; color: #fff; font-size: 14px; border: none; background-color: #F60; cursor: pointer" />
					<div class="clear"></div>
				</div>
				<%
					String showFlag = EhCacheManager.getObject(
							GenericConstants.REGISTER_PAGE_SHOW).toString();
				%>
				<c:set var="flag" value="<%=showFlag%>"></c:set>
				<c:if test="${ flag==true}">
					<div>
						<span>&nbsp;&nbsp;&nbsp;</span><a href="javascript:void(0);"
							onclick="window.location.href='<%=path%>/login/goEnterReg.action'">企业注册</a>
						| <a href="javascript:void(0);"
							onclick="window.location.href='<%=path%>/login/goPersonLogin.action'">个人注册</a>
					</div>
				</c:if>
			</div>
		</form>
		<!--end:login-->
	</div>
	<!--end:content-->
</body>
</html>
